<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .box1{
            background-color: #ff0;
        }
        .box1 div{
            width: 100px;
            height: 100px;
            border: 2px solid #000;
            font-size: 30px;
        }

        .box2{
            background-color: aqua;
            display: flex;
            flex-direction: row;
            flex-direction: column;
            flex-direction: column-reverse;
            flex-direction: row-reverse;

            flex-direction: row;
            flex-wrap: nowrap;
            flex-wrap: wrap;
            flex-wrap: wrap-reverse;
        }
        .box2 div{
            width: 120px;
            height: 120px;
            border: 2px solid red;
            font-size: 30px;
        }
    </style>
</head>
<body>
<div class="box1">
    <div>a</div>
    <div>b</div>
    <div>c</div>
</div>
<div class="box2">
    <div>1</div>
    <div>2</div>
    <div>3</div>
    <div>4</div>
    <div>5</div>
    <div>6</div>
    <div>7</div>
</div>
</body>
</html>